/**
 *
 */
package com.ybkj.daijia.server.service.impl;

import com.ybkj.daijia.server.mapper.OrderRefuseRecordMapper;
import com.ybkj.daijia.server.service.OrderRefuseRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Shine
 *
 */
@Service
public class DefaultOrderRefuseRecordService implements OrderRefuseRecordService {

    @Autowired
    private OrderRefuseRecordMapper orderRefuseRecordMapper;

    @Override
    public Long findExists(Long driverId, Long orderId) {
        Long count = orderRefuseRecordMapper.selectExists(driverId, orderId);
        if (null == count) {
            return 0L;
        }
        return count;
    }

}
